Kafka Data Intake Setup
Pre-requisites
-
Kafka brokers must be running and accessible from all Cycle instances.
-
Create the Kafka topic, for example DataIntakeQueue, and provide the required producer and consumer permissions.
-
Ensure all Cycle cluster instances are running, with a separate cycle-coherence-config.xml file and a unique port for each instance.
-
Create the Customer, Intake Profile, and Class Name (for Enrollment) in OIPA before loading data. Refer to the Data Intake Guide.
Configuration Steps
-
Update the server-side Cycle.properties on each Cycle instance:
dataIntake.enabled=true
dataIntake.source=kafka
dataIntake.kafka.bootstrapServers=<KafkaHost>:<KafkaPort>
dataIntake.kafka.topicName=DataIntakeQueue
dataIntake.kafka.groupId=oipa-data-intake
dataIntake.kafka.clientId=cycle-instance-1
dataIntake.kafka.concurrency=1
dataIntake.kafka.autoOffsetReset=earliest
dataIntake.kafka.maxPollRecords=50
Use the same topic and consumer group across Cycle instances, with a unique clientId for each instance.
-
Configure Kafka authentication and security. Sample configuration for SASL_SSL with SCRAM-SHA-512:
dataIntake.kafka.securityProtocol=SASL_SSL
dataIntake.kafka.saslMechanism=SCRAM-SHA-512
dataIntake.kafka.saslUsername=${KAFKA_SASL_USERNAME}dataIntake.kafka.saslPassword=${KAFKA_SASL_PASSWORD}dataIntake.kafka.sslTrustStoreLocation=<TruststorePath>
dataIntake.kafka.sslTrustStorePassword=${KAFKA_SSL_TRUSTSTORE_PASSWORD}dataIntake.kafka.sslTrustStoreType=PKCS12
Set the referenced environment variables for each Cycle instance and ensure the truststore is accessible.
-
Ensure dataIntake-spring-beans-true-kafka.xml is available in the deployed configuration directory (shared/conf). Verify that cycle-spring-beans.xml contains:
<import resource="classpath:/dataIntake-spring-beans-${dataIntake.enabled}-${dataIntake.source:jms}.xml"/> -
Restart the Cycle instances. Configure the producer with the same Kafka topic and compatible security settings. Send beginLoading, addRecord, completeLoading, and process messages in sequence, using fileId as the Kafka record key, the intake XML as the value, and intake message properties as UTF-8 Kafka headers.
-
Verify successful Kafka consumer startup in Cycle logs and confirm the loading and processing status in OIPA.